package cn.wolfcode.wolf2w.business.controller.admin;

import cn.wolfcode.wolf2w.business.service.*;
import cn.wolfcode.wolf2w.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 浪兎兎
 * @since 2025-06-12-15:20
 */
@RestController
public class SearchAdminController {
    @Autowired
    private IDestinationSearchService destinationSearchService;
    @Autowired
    private INoteSearchService noteSearchService;
    @Autowired
    private IQuestionSearchService questionSearchService;
    @Autowired
    private IStrategySearchService strategySearchService;
    @Autowired
    private IUserInfoSearchService userInfoSearchService;

    @GetMapping("/admin/datainit")
    public R<?> dataInit() {
        destinationSearchService.initSearch();
        noteSearchService.initSearch();
        questionSearchService.initSearch();
        strategySearchService.initSearch();
        userInfoSearchService.initSearch();
        return R.ok();
    }
}
